/**
 * Copyright 2018 asiainfo Inc.
 **/
package com.myz.rabbitmqspring.spring.event.dto;

import lombok.*;

import java.io.Serializable;

/**
 * 在app和rabbitmq之间传递消息的持有对象
 *
 * @author maoyz on 2018/8/28
 * @version: v1.0
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class EventMessage implements Serializable {

    private static final long serialVersionUID = -8780254408159788709L;

    /**
     * 队列名称
     */
    private String queueName;

    /**
     * 交换机名称
     */
    private String exchangeName;

    private byte[] eventData;
}
